{if $arrResult}
	{if $intPage < $intTotalPage && $intPage > 0}
        <input type="hidden" name="ppage" id="ppage" value="{$intPage+1}" />
    {else}
        <input type="hidden" name="ppage" id="ppage" value="-1" />
    {/if}
    {foreach item=item from=$arrResult}
    	{if $strAction == "daskboard"}
        	<div class="blogNewsItems">
                {if $item.image != ""}
                	{image path=$item.image id=$item.blogid title=$item.title type=3 small=1 class="border95 rFloat"}
                   	{image userid=$item.userid viewid=$AppUI->id type=1 small=2 class="border50 lFloat"}                                 
                    <div class="hasImg">                    	
                        <h3><a href="{blog_username userid=$item.userid}">{$item.userid|ouser}</a></h3>
                        <h4><a href="{link_blog blogid=$item.blogid title=$item.title}" class="title">{$item.title}</a></h4>
                        <p>{$item.short}...</p>
                        <div class="stat">
                            <span class="date">{$item.postdate|date_format:"%d-%m-%Y"}</span>
                            <span class="bLike">Thích (<strong>{$item.tlike|number_format:"0":",":"."}</strong>)</span>
                            <span class="bCmt">Bình luận (<strong>{$item.tcmt|number_format:"0":",":"."}</strong>)</span>
                        </div>
                    </div>
                {else}
                	{image userid=$item.userid viewid=$AppUI->id type=1 small=2 class="border50 lFloat"} 
                    <div class="noImg">  
                        <h3><a href="{blog_username userid=$item.userid}">{$item.userid|ouser}</a></h3>
                        <h4><a href="{link_blog blogid=$item.blogid title=$item.title}" class="title">{$item.title}</a></h4>
                        <p>{$item.short}...</p>
                        <div class="stat">
                            <span class="date">{$item.postdate|date_format:"%d-%m-%Y"}</span>
                            <span class="bLike">Thích (<strong>{$item.tlike|number_format:"0":",":"."}</strong>)</span>
                            <span class="bCmt">Bình luận (<strong>{$item.tcmt|number_format:"0":",":"."}</strong>)</span>
                        </div>
                   	</div>
                {/if}                                       
            </div>
        {else}
        	<div class="blogItems">
                {if $item.image != ""}
                	{image path=$item.image id=$item.blogid title=$item.title type=3 small=1 class="border160 rFloat"}
                    <div class="hasImg">
                        <h3><a href="{link_blog blogid=$item.blogid title=$item.title}" class="title">{$item.title}</a></h3>
                        <h4>{if $intType < 5 && $strAction != "user"}<a href="{blog_username userid=$item.userid}" title="Đăng bởi: {$item.fullname|escape}">{$item.userid|ouser}</a> - {/if}{$item.short}...<a href="{link_blog blogid=$item.blogid title=$item.title}">xem tiếp</a></h4>                        
                        <div class="stat">
                            <span class="date">{$item.postdate|date_format:"%d-%m-%Y"}</span>
                            <span class="bLike">Thích (<strong>{$item.tlike|number_format:"0":",":"."}</strong>)</span>
                            <span class="bCmt">Bình luận (<strong>{$item.tcmt|number_format:"0":",":"."}</strong>)</span>
                        </div>
                    </div>
                {else}
                    <h3><a href="{link_blog blogid=$item.blogid title=$item.title}" class="title">{$item.title}</a></h3>
                    <h4>{if $intType < 5 && $strAction != "user"}<a href="{blog_username userid=$item.userid}" title="Đăng bởi: {$item.fullname|escape}">{$item.userid|ouser}</a> - {/if}{$item.short}...<a href="{link_blog blogid=$item.blogid title=$item.title}">xem tiếp</a></h4>                    
                    <div class="stat">
                    	<span class="date">{$item.postdate|date_format:"%d-%m-%Y"}</span>
                        <span class="bLike">Thích (<strong>{$item.tlike|number_format:"0":",":"."}</strong>)</span>
                        <span class="bCmt">Bình luận (<strong>{$item.tcmt|number_format:"0":",":"."}</strong>)</span>
                    </div>
                {/if}                                       
            </div>
        {/if}
    {/foreach}
    {include file="common/loading.tpl" loadtype=1 display="none"}
{else}
	<input type="hidden" name="ppage" id="ppage" value="-1" />
	{if !isset($ajax)}
    	<div class="notContent">Hiện tại, không có Nhật Ký hiển thị theo tiêu chí của bạn.</div>
    {/if}
{/if}